import cache from 'Cache.js';
function http(url,type,data,callback){
    wx.request({
        url: url, //仅为示例，并非真实的接口地址
        data: data,
        header: {
            'content-type': 'application/json', // 默认值
             'Authorization': cache.getSorg('token')
        },
        method:type,
        success(res) {
            callback(res.data)
        }
    })
}
module.exports = {
    http:http
}